import Vue from 'vue'
import App from './App.vue'

// 引入路由
import router from './router'
//引入store
import store from './store'
// 引入mockServe.js----mock数据
import '@/mock/mockServe'
// 统一接口api文件夹全部函数---统一引入
import * as API from './api'
// 引入element库
import "./plugins/element"

import Carousel from './components/Carousel'
Vue.component(Carousel.name,Carousel)
import Pagination from './components/Pagination'
Vue.component(Pagination.name,Pagination)
import Process from './components/Process'
Vue.component(Process.name,Process)
import WangEditor from './components/WangEditor'
Vue.component(WangEditor.name,WangEditor)
//引入swiper包
import 'swiper/css/swiper.css'

import "./utils/TweenLite.min.js"
import "./utils/EasePack.min.js"

// import * as echarts from 'echarts';
// Vue.prototype.$echart = echarts

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus = this;
  },
  router,
  store
}).$mount('#app')
